﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models
{
    public class Reservation
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        public string Title { get; set; }

        [Required]
        public DateTime Begin { get; set; }

        [Required]
        public DateTime End { get; set; }

        [Required]
        public DateTime Created { get; set; }

        [Required]
        public int RoomId { get; set; }

        [Required]
        public int UserInfoId { get; set; }

        [NotMapped]
        public Room Room { get; set; }
    }
}